You can set transparent areas in both GIFs and PNGs so that in a Web browser, the background of the Web page is visible through the transparent areas of the image.
For more information on setting transparency, see Assigning transparency.